#ifndef POPUP_MAIN_DIALOG_H
#define POPUP_MAIN_DIALOG_H

#include "MyTabCtrl.h"
#include "PopupClientInfo.h"
#include "PopupMessageInfo.h"

class CpopupDialog;

// PopupMainDialog dialog

class PopupMainDialog : public CDialog
{
	DECLARE_DYNAMIC(PopupMainDialog)

public:
	PopupMainDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~PopupMainDialog();
	void clearClients();
	void updateClientStatus(const PopupClientInfo & p_client);
	void appendHistory(const PopupMessageInfo & p_message,
					   bool p_received = true);

// Dialog Data
	enum { IDD = IDD_TAB_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	virtual void OnOK();

	DECLARE_MESSAGE_MAP()

	CpopupDlg *m_parent;
public:
	CMyTabCtrl m_tabCtrl;
};

#endif